With all the discourse over this issue, I'd just like to point out I currently have an appeal going due to this specific issue. If ya'll wanna give it a quick look, I would love you forever.
Yes, the mayor can lock it. You cannot. And you cannot prop block it, because it is an NPC. I think the only reason you care is because you were doing it the other day and making it invisible.