Scottish Justices of the Peace under threat