Close review requests only from commits to master

Commits with review requests that are pushed to non-master branches
should not close the review requests. Check the "ref" value before
closing.