Fixed thread safety for purge and status threads