(1) If any officer, seaman or apprentice who is not shipped in Pakistan is imprisoned on complaint made by, or on behalf of, the master or owner of the ship for any offence for which he has been sentenced to imprisonment for a term not exceeding one month, then (a) while such imprisonment lasts, no person shall, without the previous sanction ...