metamodel: replaced all locking with model loader lock to not introduce multi-lock-deadlocks #226