_sync_exec_cleanup() renamed to thread_cleanup()