Backport spi bus locking api