Time machine stuck on cleaning up/ Error -47
I had the same problem after I got a new iMac, did a transfer from Snow Leopard to Lion and it just go stuck. I did everything but to no avail.

If you are on the same boat as me, I fixed it upgrading to Mountain Lion.