[NUCLEO_F401RE] Fix issue with sleep function

The timer interrupt used for the ST HAL tick must be disabled before
going into sleep.