Fix Environment(mode=) handling.

Previously mode= was passed straight to LMDB and never used during
create=True's mkdir. Now instead mode specifies the dir permissions,
which has -x masked off before passing to LMDB for use as the file mask.