asn1x: Sanitize use of asn1_set_value/asn1_take_value

Most callers of asn1_set_value() seems to assume this function will take
ownership of the passed in GBytes, while it actually takes an additional
reference.

https://bugzilla.gnome.org/show_bug.cgi?id=738508