remove dependency on thread_context for derive_luma_motion_merge_mode()