release lock when lock object dies. fixes #6