Check return value of realloc_friendlist and return FAERR_NOMEM on error

It seems like the return value of realloc_friendlist is ignored at the moment, but realloc could fail.