If you're using a bucket, get a sanitized sauce pot and scoop out a good portion of the foamy krausen. that will buy you some time to rig a blow off tube.
Relax, your beer is not ruined. Get a blowoff system ASAP. I made this mistake when I started brewing a couple of years ago. S-locks and three pieces should really only be used during secondary IMHO...