use latch for fragment retrieved by query
(cherry picked from commit ca0714a)