Thread safety in entity tracker.

I have a problem where my server randomly crashes from what I suspect is
updating the players' experience bar level in another thread, crash
pointed to this code so I made it thread safe.