stm32mp1: board: protect the led function calls