Update SentinelThread.java

Thread synchronisation bugfix