Fix registering locked mutexes to ignore while suspension