Hayes prison to be sold