[server][HatoholThreadBase] Use a atomic variable for MT-safe.
[server][testArmBase] Add tests for the failure of mainThreadOneProc().