libx264: Make codec use the init-cleanup flag and mark it as init-thread-safe