spi: fix SPI_BIT_MASK so it always fits into 32-bits