Let GravatarThread access the exit flag pointer instead of member variable after instance destroyed

Signed-off-by: Sup Yut Sum <ch3cooli@gmail.com>