Fix a deadlock that occurred due to a conflict of masquerades.