fix: fail to write fdb index lazily

Merged Vivek Naik requested to merge lazy_write_fdbIndex into devbranch
  1. Oct 18, 2019