4(4)If a dispute arises as to the correctness of any claim, or the sheriff for his own protection thinks proper so to do the sheriff may apply to a judge of The Court of Queen’s Bench of New Brunswick upon petition, stating the facts as to the money in his hands, and the claim filed, and obtain a summons calling upon the debtor and claimant to appear before the judge at a time and place to be named in the summons, and the judge, upon hearing the parties, or such of them as appear at the return of the summons, may make such order therein as he deems just, and the sheriff’s obedience to the order is a defence to him in any proceedings that the claimant or debtor may bring against him in respect of any sum that he may pay in accordance with such order.