lavf: restore old behavior for custom AVIOContex with an AVFMT_NOFILE format.