That style of uniform was still being worn in WW2 having been around since at least WW1, he is not a Master at Arms because he would have lapel badges if that was the case. A RN Warrant Officer though is almost certainly what he is. Perhaps Seaweed if he is around could help.