Added tracking for number of locks failed per thread