Demonstration of deadlocks by adding a small delay updated for mbed os 5.4