added volatile flags to all queue functions
added test_mpmc_check to tests.h

also cleaned up test_mpmc_check.h