[RedmineAPIEmulator] Avoid using C++11's std::queue::swap