[server][testHatoholArmPluginGate] Replace GMainLoop with SimpleSemaphore.

There are two reasons.

(1) The previous code stalls if quit() is called before run().
(2) New code eliminates the timer handler. As a result, the number
of code has been reduced.