Fixed bug when mutex is not handled properly when identity object changes uri on login.