malloc(),free() made thread_safe. realloc remains.