[MOD] Core, Locking: Command optimizations, seperate read/write locking