Here's a plugin I started to work on that might be what you are looking for:
https://moodle.org/plugins/local_recompletion
The version in github has a few more improvements that the version currently in the plugins db doesn't have and it's not quite what I'd call production ready but it's getting pretty close.