Fixes a concurrancy problem with a HashMap
Merge pull request #13 from stenbacka/concurrency-problem-SNC-fix

Fixes a concurrancy problem with a HashMap