If you ever plan to travel by sea off the coast of east Africa, make a note to self: Britney Spears’ music seems to have a repellent effect against pirates.