don't use couchdb::document for creating _security, cause this special doc doesn't have and _id (#3706)