Added some synchronization to the KadBucket and DHT