Goalkeeper Luke Steele has agreed a new two-year deal at Barnsley, having previously looked set to leave the club.