[PATCH v2] md: fix an incorrect NULL check in sync_sbs