Good Job is a strong attempt. I believe it's based around Advisory Locks though.
https://github.com/bensheldon/good_job