[PATCH 3/6] server: Use an event sync for thread objects.