memtester: added support for MEMTESTER_EARLY_EXIT env variable

If we have already detected some memory corruption, the test gets
terminated to avoid wasting time.

Signed-off-by: Siarhei Siamashka <siarhei.siamashka@gmail.com>