locking: Make USERNAME_LEN_MAX global.