A judicial officer is not criminally responsible for anything done or omitted to be done by him in good faith in the exercise of his judicial functions, although the act done is in excess of his judicial authority, or although he is bound to do the act omitted to be done.