md: fix race when unfreezing sync_action