fixed deadlocks in locksteptaskscheduler