Implement /rangelock

More info: http://www.smogon.com/forums/threads/3517493/
This is done in three places, maybe it should be refactored into Users?