Always use mlockall fixes it, still trying to keep everything else as untouched as possible. Signed-off-by: Daniel Golle <daniel@makrotopia.org>