Bugfix for issue #101 draft 0.1

This is a bugfix for the race caused when a peer tried to write and read to p.versionKnown concurrently.

To correct this, a new mutex and two functions were added for locking and subsequently reading or writing the state of versionKnown.