The monitor active state is now modified under the same lock. This should make creation and destruction of monitors deterministic.
The monitor active state is now modified under the same lock. This should make creation and destruction of monitors deterministic.