freedreno/query: add optional enable hook