[PATCH] md: improve 'scan_mode' and rename it to 'sync_action'