"Flaking the chain" is usually a term yachties use for making sure a boat's anchor chain doesn't get tangled when pulled up inside the vessel... but it's ALSO slang for when dudes working on yachts bust a nut in confined staff cabins, usually a quickie and in secret when the bunkmate is away.