cluster/afr: reorganize transaction code

- remove more unused variables and functions
- move non transaction code to afr-common.c
- skip setting xattrs in pending dict if nothing is pending

Change-Id: I819d6f2ac522731fbabc64eada3196c47e88c83a
Signed-off-by: Anand Avati <avati@redhat.com>