fix a bug in fbentry unmarshall, and add mutex to fbBatches