[ARM] Minor fixes to arch_elf_apply_relocate()

Coverity Scan detected few minor issues with arch_elf_apply_relocate().

This patch fixes those isssues and beautifies this function.

Signed-off-by: Anup Patel <anup@brainfault.org>