fixed race conditions in kt_release_tasks