Implement /rangelock

More info: http://www.smogon.com/forums/threads/3517493/
No, that's dealing with the race condition :|
This commit does both. It locks the user on rename if they have had their host identified, or -alternatively- locks the user when their host is identified if they already got a name (i.e. if we know that they are not autoconfirmed).