shitfix lib curl multithreading errors with phtread_mutex