Add fail-safe lock, if requested lock doesn't exist. DefaultSystem now adds an APPLICATION_LOCK.
Moved loaks to constructors.