Refusing to be a witness in Scotland can lead to legal consequences, including being held in contempt of court.