UC-2986 SSS race when reading presence updates could lead to stuck BLFs

add new method dequeueAll to get all queue elements at once
Merge remote-tracking branch 'origin/release-14.10' into release-14.10