Core hysteresis in nematic defects