supply a lock manager to make libav thread safe