avcodec: remove unecessary check for thread safety on safe libavcodec builds