Tory MSP threatens legal action after police log 'hate incid