[FEATURE] Re-introduce Lock Manager
This reintroduces the Lock Manager which locks the whole site while
compile time commands are executed. The Lock Manager will protect
applications running in Production context against race conditions
during cache warming and other code manipulating commands.
The Lock Manager is not active in Development or Testing context.