Merge '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 patch is included, porting the MAX30001 driver in
commit 6da4644e ("chore(max30001): Port to new mutex and hw-lock APIs").

See merge request card10/firmware!356
3 jobs for master in 2 minutes and 10 seconds (queued for 4 seconds)
latest
Status Job ID Name Coverage
  Build
passed #8467
build

00:01:15

 
  Deploy
passed #8468
pages

00:00:54

passed pages:deploy

00:00:02