[NUCLEO_L053R8] Fix ticker issue

Seen during MBED_11 and MBED_23 tests.