How to thread safe update a field in java | Hacker News Reader