[PATCH 07/16] asn1: Implement asn1_write_definite_length