(2)Every seafaring person to whom the master of a ship is under the authority of this Act or any other law compelled to take on board and convey and every person who goes to sea in a ship without such consent as aforesaid shall, so long as he remains in the ship, be subject to the same laws and regulations for preserving discipline and to the same fines and punishments for offences constituting or tending to a breach of discipline as if he were a member of, and has signed the agreement with, the crew.