I haven't read his Human Understanding, but his Second Treatise is really weak in ways that can't really be blamed on lack of mathematical training (unless we're going with "all rigorous thinking is math") so there may be more to it in his case than just "he didn't study math enough".