Log Message: Move Solaris-specific code first, at least SmartOS doesn't support 'RLIMIT_MEMLOCK' and fails with the default mlock code.