MPC: Register a lock manager for thread-safety of ffmpeg functions.