fixed likely_release_env race condition