Added proper synchronization for switching to using THP in auto mode. Also fixed stats for number of THPs used.