[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.
[NUCLEO_F072RB] Add assert
[DISCO-F303VC] Updated with F302R8 recent changes
[DISCO-F051R8] Updated with F030R8 recent changes