finalized the chat room lock