[server] Rename a variable to be suitable for the current code.

runMainLoop ->
waitMainSem

Recently the synchronization mechanism has been changed from
the GMainLoop-based to the SimpleSemaphore-based. So the
variable was changed to follow it.