[NUCLEO_F401RE] Fix issue with sleep and ST HAL tick timer

The timer used for the ST HAL tick must be disabled before entering in
sleep mode.