(b)
A stay of execution granted pursuant to subsection (a) shall expire if—
(1) a State prisoner fails to file a habeas corpus application under section 2254 within the time required in section 2263;
(2) before a court of competent jurisdiction, in the presence of counsel, unless the prisoner has competently and knowingly waived such counsel, and after having been advised of the consequences, a State prisoner under capital sentence waives the right to pursue habeas corpus review under section 2254; or
(3) a State prisoner files a habeas corpus petition under section 2254 within the time required by section 2263 and fails to make a substantial showing of the denial of a Federal right or is denied relief in the district court or at any subsequent stage of review.