avformat: Replace ffurl_close() by ffurl_closep() where appropriate