Fix problems invoving thread.yield while holding the updateLock semaphor...