fix build (comment some deprecated tox functions), add `Cargo.lock` to .gitignore

Subj. But it segfaults for the reason I don't know yet.
Toxcore no longer have this function and high-level code actually doesn't use it, so I commented it out.