[server][Helpers][GMainLoopWithTimeout] Make the class MT-safe.
[server][Helpers][GMainLoopWithTimeout] Rename to make it simple.