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