Fix delayed deallocation when there're multiple parallel interpreters