Workaround for LMDB deletion bug