Fix race condition in Promise -
https://github.com/ghetolay/jwamp/issues/42