core/mem: f_malloc - simplified join in realloc

- restore proper usage counters