[PixelOverlay] Retry lock in TextMessage code
(cherry picked from commit 48798441a0442d2296fd9ebddc3f0c381c40d01f)
(cherry picked from commit 7d3e7747895d09b3c03322149631e2d97b355ae9)