simple locking for safer link map writing
Merge pull request #9 from markrwilliams/master

simple locking for safer link map writing