avformat/gxfenc: Check and propagate return code from gxf_write_map_packet()