Adding test for the mutual_thread_comm library.
Fix in mutual_thread_comm library for out of order token arrival leading to an illegal resource trap.