The trespassing part is a bug, but nothing new to games. You are hitting a seam between two rooms. Probably says trespassing because your cursor on the mini map is "in" the next room. Seen stuff like that MANY times before.
The bathroom part is not a bug. Places like that become persona non grata once an NPC enters.
I will give you a similar example that is scripted. In Colorado, notice that the bathroom in Sean Roses room is unlocked. The second he walks into it, it is locked. Even if you unlock the doors, when he goes back in, they will be locked again.
In Hokkaido and Sapienza, I have had people ask me for privacy when I enter the bathroom with them. Non-compliance can lead to a suspicion alert.