Backport this bugfix from v8 that came in around version v3.19.13 (and
showed up in node v0.11.3).

https://codereview.chromium.org/16286018/

This gets rid of long GC pauses caused by processing weakmaps too many
times during a garbage collection.