Make sure to unlock to prevent deadlock in stat_to_mom

fixes #92
Merge pull request #126 from mattaezell/gh_92

Make sure to unlock to prevent deadlock in stat_to_mom