[U-Boot] [PATCH v3 077/108] spi: ich: Move the protection/lockdown code into a function