Section 22. The master of a vessel, before unloading lumber in the stream or channel of a harbor having a harbor master, shall obtain from him a permit, designating where such lumber may be rafted.