Solution to Task 6.1.7 Note the order in which the locks are taken.

Dependencies:   mbed-rtos mbed