Move start time for sched timeout after locks

Move start time of main scheduling loop timeout after locks are aquired.
bug 698