Merge "UsageStats: Use dedicated thread to monitor the state of packages." into main