Losing code wasn't really a risk with Sourceforge either. Submitting patches on mailing lists or controlling access to using SSH will always be workable. The benefit of Github is the directory and collaborative aspect.
It's much easier for people to contribute to projects now, and a lot of projects might not have grown as quickly without it. The central directory also makes it a lot easier for other people to find stuff which probably also plays a role.
I doubt Github will go down the same path as Sourceforge.