thread_safe calloc() added