concurrency: update java example

Demostrate how race condition may happen if no synchornize keyword
specified