Fixed StaticPriorityScheduler so that it only returns main if no other
threads exist.
Added logging of scheduling and locking events as specified in
assignment description.