fix memory leak on tags

the ql:tags set continues to grow even if the tag is no longer used by any jobs.

this PR addresses that.