Scaling symmetry and scalar hairy Lifshitz black holes