avcodec: Don't lock on init for codecs without an init function