Update ClientThread.java

Change synchronized way to readwritelock