Well, the answer to this one is pretty easy and straight-forward. You can accomplish that using a check-in policy. For example, to force users to link check-ins to work items that are not closed, you may do the following:
Now, after you added this check-in policy, the user should link the changeset to a work item of the "Not Closed" query or provide a policy-override reason.