Restructure the locking around SPI transfers
Merge pull request #1131 from PX4/pr-1131

Fix SPI struct unitialized use warning