avcodec/libdav1d: properly free all output picture references