Fix issue with opening pm again causes neverending loading
Added some locking around chat rooms