I've been thinking about what I'd do if I worked at one of these labs with access to a usable (not galactic) "factorization in P" result. I think the only reasonable thing would be to post a public factorization of the 2048 bit RSA challenge number. Basically, it's pretty easy to give the necessary warning to the world that would push us to fix crypto before it's public, there's no need to dump the full result publicly right away. You also want to avoid the risk of something like that becoming a 3-letter-agency secret for the next several years.
I know we all like to be cynical regarding the NSA, and with good reason, but they have in the past shown some level of foresight, and I would hope they have some sort of plan for how to deal with something being found to be broken and how to co-ordinate with industry to minimise the impact of that.
In this situation I do not see any realistic option for a US lab that wouldn't involve engaging the NSA, and would be very surprised if this wasn't already the case.
As someone who hopes for a usable algorithm for NP (a quasipolynomial with small constants would be fine), I think realize that the encryption is not everything, and benefits (for optimization) would outweight the costs. Honestly it might not even be that a bad world if people can read each others communications.
But for factoring or discrete log specifically.. I don't care that much. You can try to keep it a secret if you want.