make queue thread safe in push/pop operation
Merge pull request #122 from iHiroakiKawai/queue_thread_safe

make queue thread safe in push/pop operation