fix a issue that miss the detection for checking if future is completed or cancelled in CAS loop