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