[server][HatoholArmPluginGate] Fix a bug that sometimes causes a deadlock.

This fix has been leaked when issue-171 branch was merged.
[server][testHatoholArmPluginGate] Fix a problem that might fail wrongly.

If the message comes after the target process terminated, test cases
couldn't receive the message the target sent.