ITS#7841 trivial cleanup

TRIVIA - lmdb: clean testdb-dir while "make test".
ITS#7959 Check fstat return value

Signed-off-by: Jean-Christophe DUBOIS <jcd@tribudubois.net>