since only uses of forEachWithCB are getStates and setStates, use that as a mutex point to avoid race between two setStates calls. fixes #2
Merge branch 'master' of github.com:natevw/node-nrf