Add a few regression tests for mlock(2).
These are intended to exercise some rarely executed code paths.
MFC after: 2 weeks