Example to test mlock.