Fixed change nickname may cause occupants duplicated issue

User A joined chatroom, then user B joined chatroom. If user A changed his nickname, it may cause duplicated occupants.