Call to release 'at risk' NSW prisoners