bug: db.set callback doesn't fire

In node v0.10.x db.set callback would not fire on second write.
Node streams API changes meant that drain event is not emitted
in same frequency.  This fix appropriately only relies on the drain
event when the write buffer was full.

Tested in node v0.10.0 and node v0.8.17. Also makes existing tests
non version specific.