cluster/afr: improve lookup() robustness

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