[PATCH] selftests/mm: refactor common code and improve test skipping in guard_region