A java thread unsafe example.