minimal yet very useful synchronization primitive on top of jQuery Deferreds