write-command: generate _id client side if it is missing.

This was being enforced in other places, better to catch-all here when
creating a new write command.