fix(bitswap:ledger) race conditions

https://github.com/jbenet/go-ipfs/issues/39