Initial import of memtester, from v4.3.0

Taken from http://pyropus.ca/software/memtester
Now supports locking more than 1MB at a time on FreeBSD

* It's _SC_PAGESIZE, not _SC_PAGE_SIZE
* Use rlimit to change the system and per-process mlock limits