I just had this same sort of bug happen with Bunky except it was right outside a closet door when I was inside the closet. He of course killed me once I opened it again but he couldn't open it himself.
Oh I just realized I missed that there was a map function, I'm pretty sure the place where it happened was the bedroom near the middle of the map. Edit: Oh yes, it happened again in that very room. He just stands outside growling forever.