selftest: move seek_to_smaps_entry() out of mlock2-tests.c