I know little about airplane tech, but do these onboard systems such as PA ever get OTA software updates? Perhaps an update got pushed that runs the prank? Could explain it happening on multiple flights and attendants being unable to stop it.
I think some kind of overlooked physical access to the system is the simplest explanation, since it would even effect an analogue system. Imagine there was some kind of mic input in the bathroom for some reason you could hook up a device to.