ssb: add locking around gpio register accesses