check-release.pl: improve new commit detection

Rather than looking for a hardcoded commit message "Bump to next release
cycle", let's only count commits on master since the last tag which
affected the src/main subtree. Because commits elsewhere are unlikely to
merit another new release.

As a side effect, the "Bump to next release cycle" commits will not be
counted, since they do _not_ affect src/main.