How can one Lock pins for STM32F4 boards?

How can one Lock pins for STM32F4 boards?