Fix spurious fallthrough.
Add test to validate memory locking behavior.

This works by modulating the soft RLIMIT_MEMLOCK setting and verifying
whether memory can be allocated.
Mark Google Test as a system include directory.
Remove spurious status from CMakeLists.txt