Consolidate locks in ActionManager::PrivateContext to make the code simple.
Implement the mechanism that limits the running actions at the same time.