Non-crime hate incidents guidance needs to be urgently changed because officers are "not the thought police", the shadow home secretary has said.