Fix race condition when there're two flags next to each other
Fix race condition when there're two flags next to each other

Reviewed By: yungsters

Differential Revision: D7194598

fbshipit-source-id: a76328d63f649403de15503596a179c7baaf7dc3

exponent/react-native,exponentjs/react-native,hoastoolshop/react-native,hoastoolshop/react-native,exponent/react-native,janicduplessis/react-native,hoangpham95/react-native,javache/react-native,exponent/react-native,hoangpham95/react-native,facebook/react-native,javache/react-native,pandiaraj44/react-native,myntra/react-native,hammerandchisel/react-native,myntra/react-native,janicduplessis/react-native,pandiaraj44/react-native,hoangpham95/react-native,hoangpham95/react-native,pandiaraj44/react-native,facebook/react-native,myntra/react-native,janicduplessis/react-native,hammerandchisel/react-native,javache/react-native,pandiaraj44/react-native,hoastoolshop/react-native,janicduplessis/react-native,hoastoolshop/react-native,hoangpham95/react-native,exponentjs/react-native,javache/react-native,facebook/react-native,facebook/react-native,javache/react-native,janicduplessis/react-native,janicduplessis/react-native,hammerandchisel/react-native,myntra/react-native,javache/react-native,arthuralee/react-native,hoastoolshop/react-native,myntra/react-native,myntra/react-native,hoangpham95/react-native,facebook/react-native,exponentjs/react-native,pandiaraj44/react-native,exponent/react-native,pandiaraj44/react-native,hammerandchisel/react-native,hoangpham95/react-native,pandiaraj44/react-native,exponentjs/react-native,myntra/react-native,hoastoolshop/react-native,hammerandchisel/react-native,arthuralee/react-native,hoastoolshop/react-native,arthuralee/react-native,facebook/react-native,javache/react-native,hammerandchisel/react-native,arthuralee/react-native,facebook/react-native,javache/react-native,hoangpham95/react-native,exponentjs/react-native,exponentjs/react-native,myntra/react-native,exponent/react-native,hammerandchisel/react-native,myntra/react-native,facebook/react-native,javache/react-native,hammerandchisel/react-native,exponent/react-native,hoastoolshop/react-native,arthuralee/react-native,exponent/react-native,exponentjs/react-native,exponent/react-native,janicduplessis/react-native,facebook/react-native,exponentjs/react-native,pandiaraj44/react-native,janicduplessis/react-native