core: simplify mutex signatures

Fixes #1436
Yep, done.