bool AuthorizationContract::contains(AuthorizationContract& other) needs to take the mutex of other when doing its comparisons.