Port hardware locks to new mutex API

Merged rahix requested to merge rahix/hw-lock-new-mutex into master

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).

Merge request reports