[Issue 8864] ber_realloc doesn't update ber_rwptr