In the case of any person hospitalized under section 324 of this title who has been judicially committed to the Secretary’s custody, the Secretary shall, upon the discharge or conditional release of such person, or upon such person’s transfer and release under section 323 of this title, notify the committing court of such discharge or conditional release or such transfer and release.