integrated patch from AquaFold

- adding storage of a reference to the last com.mongodb.DB object used to the owning MongoScope for db.getLastError() calls after-the-fact (otherwise breaks fsync tests)