fixed a race condition
which in some specific circumstance would have caused a node to download the same key
multiple times from a peer without it being really necessary