We close and add a notice to each thread if the link is dead. You shouldn't be able to unlock it once it's closed. If you unlock a resource and the link was dead, report it and add that you want a refund.
We can't automate this and no one will check through thousands of posts every day.