Prevent a QString from being created and destroyed every time we call PackageKitResource::state (cherry picked from commit dd18487e)