Update DrawThread.java

add the synchronized.