test case for `for' repair

Provided by Ryan to go with a85a71984d.
configure: adjust mmap()/mprotect() test

Avoid aggravating SELinux.
catch module-not-available mimatches earlier