Port hardware locks to new mutex API
Move hw-locks to new mutex API in multiple steps to keep diffs readable. The users of hw-locks are not ported to the new-semantics; this needs to be done as a follow up. One example patch is included, porting the MAX30001 driver (commit efffdade).