Wayne Davison wrote a nice patch that addresses this issue. It requires a previous patch though, both are available here:
Just in case, my local copy is available here, which works fine with rsync version 2.5.2
All you have to do is uncompress your rsync, put both patches inside and install them with:
patch -p1 < rsync-nohang.patch
patch -p1 < rsync-move-files.patch
If you did not get any errors, you can compile and install with: ./configure ; make ; make install
Keep in mind that the new rsync installs in /usr/local/bin. Execute /usr/local/bin/rsync --help and you will see that the --move-files parameters will show up.
IMPORTANT: Make sure you replace the existing rsync binary on both, local and remote machines.