write-concern: add docs.
write-concern: implement freezing of write concern.

This function will also compile the getlasterror to be used by RPCs
submitting the getlasterror OP_QUERY operation.