SPI code and got rid of buffer lock

no need to lock buffer, because only 1 cog ever writes to the buffer. So
we dont need protection