cleaned up the code in nbt_doPhaseLocking