Changed lock structure of unprocessed and schedule queues to reduce contention. Unprocessed lock should always be acquired before schedule queue lock.