cells: Fix retry loop and logging in sendAndWaitToPermanent

Signed-off-by: Gerd Behrmann
Merge-request: http://rt.dcache.org/Ticket/Display.html?id=7713
Patch: http://rb.dcache.org/r/5284