Prior to the sale of any parcel of land, or a portion thereof owned by the state, except a transfer or conveyance to the party against whom foreclosure was taken or who conveyed to the state in lieu of foreclosure under the provisions of section 17b-138, or as provided in subsection (g) of this section, the state agency, department or institution responsible for the sale of such land shall first n