Hide create new account tab
The Tab Tamer module will do it for you without having to write a single line of code:


  Tab Tamer is an administration utility that provides easy re-ordering, hiding, and deactivation of tabs and subtabs. You can also rename tab labels.