fix stm32f2/4 support, write unlock key will fail is already unlocked