Fix chains creation
Fix chains creation

Summary: The added slow-debug check finally triggered and showed that it is necessary to skip some blocks when processing the block map linearly.

Reviewed By: NTillmann

Differential Revision: D33051945

fbshipit-source-id: 456a3a00f377ce2dfd18208d629743de5c6d105e

facebook/redex,facebook/redex,facebook/redex,facebook/redex,facebook/redex,facebook/redex,facebook/redex,facebook/redex,facebook/redex