Fixed issue when set_uid is called for the 'anon' user.