synchronous calls with the threaded C nif ok