[PATCH] RLIMIT_MEMLOCK checking fix