Tennessee inmate asks court to declare he can’t be executed