A person in custody shall not be released upon a writ of habeas corpus until forty-eight hours after the judgment ordering the release has been entered or until an application by the state for supervisory writs has been denied, whichever occurs first, if:
La. Cr.P. § 370