(1) The sheriff may restrain a person who is hindering the execution of a warrant.
(2) A person restrained under this section must be released as soon as the activity that the person was hindering has been completed.
(3) Nothing in this section affects the operation of section 47 or 48 or the powers of the Supreme Court in relation to contempt.