libextra: Rewrite `MutexArc`

r? @alexcrichton