Add mutex interfaces.
Remove *~.