Linear instability of entire solutions for a class of non-autonomous elliptic equations