[MIN] Core, Locking: Cleanup and small fixes

- enforce preclaiming locking
- use fair scheduling to prevent starvation
- some refactoring