This adds a 'metadata' argument to cap_grant, and cap_insert that allows the caller to set the `metadata` field of a cnode atomically on creation.