Change rulekey cache lookup to be a future
Change rulekey cache lookup to be a future

Summary:
This change updates the build engine logic to support asynchronous
rulekey cache lookups (but the lookup is actually still synchronous). A
following diff will make the lookup actually async.

Test Plan: CI

Reviewed By: Coneko

fbshipit-source-id: e4a276f

zpao/buck,rmaz/buck,clonetwin26/buck,marcinkwiatkowski/buck,SeleniumHQ/buck,ilya-klyuchnikov/buck,SeleniumHQ/buck,davido/buck,brettwooldridge/buck,ilya-klyuchnikov/buck,romanoid/buck,ilya-klyuchnikov/buck,clonetwin26/buck,brettwooldridge/buck,JoelMarcey/buck,grumpyjames/buck,vschs007/buck,davido/buck,LegNeato/buck,shs96c/buck,clonetwin26/buck,darkforestzero/buck,grumpyjames/buck,darkforestzero/buck,facebook/buck,davido/buck,JoelMarcey/buck,zhan-xiong/buck,daedric/buck,zpao/buck,Addepar/buck,dsyang/buck,romanoid/buck,shs96c/buck,shybovycha/buck,zhan-xiong/buck,dsyang/buck,shs96c/buck,dsyang/buck,shs96c/buck,zpao/buck,LegNeato/buck,robbertvanginkel/buck,marcinkwiatkowski/buck,ilya-klyuchnikov/buck,marcinkwiatkowski/buck,rmaz/buck,facebook/buck,dsyang/buck,k21/buck,robbertvanginkel/buck,kageiit/buck,robbertvanginkel/buck,LegNeato/buck,dsyang/buck,LegNeato/buck,Addepar/buck,shybovycha/buck,romanoid/buck,LegNeato/buck,grumpyjames/buck,brettwooldridge/buck,Addepar/buck,brettwooldridge/buck,vschs007/buck,SeleniumHQ/buck,Addepar/buck,robbertvanginkel/buck,grumpyjames/buck,vschs007/buck,zhan-xiong/buck,vschs007/buck,rmaz/buck,daedric/buck,daedric/buck,clonetwin26/buck,Addepar/buck,marcinkwiatkowski/buck,nguyentruongtho/buck,daedric/buck,clonetwin26/buck,Addepar/buck,daedric/buck,JoelMarcey/buck,ilya-klyuchnikov/buck,clonetwin26/buck,k21/buck,JoelMarcey/buck,clonetwin26/buck,shs96c/buck,shybovycha/buck,zpao/buck,zpao/buck,rmaz/buck,SeleniumHQ/buck,davido/buck,darkforestzero/buck,daedric/buck,rmaz/buck,grumpyjames/buck,brettwooldridge/buck,romanoid/buck,robbertvanginkel/buck,k21/buck,JoelMarcey/buck,dsyang/buck,zhan-xiong/buck,LegNeato/buck,romanoid/buck,shybovycha/buck,marcinkwiatkowski/buck,robbertvanginkel/buck,facebook/buck,k21/buck,LegNeato/buck,SeleniumHQ/buck,dsyang/buck,k21/buck,shs96c/buck,vschs007/buck,kageiit/buck,Addepar/buck,SeleniumHQ/buck,zpao/buck,darkforestzero/buck,vschs007/buck,shybovycha/buck,romanoid/buck,kageiit/buck,LegNeato/buck,Addepar/buck,SeleniumHQ/buck,zhan-xiong/buck,JoelMarcey/buck,kageiit/buck,shs96c/buck,romanoid/buck,rmaz/buck,JoelMarcey/buck,grumpyjames/buck,ilya-klyuchnikov/buck,darkforestzero/buck,SeleniumHQ/buck,brettwooldridge/buck,rmaz/buck,JoelMarcey/buck,zhan-xiong/buck,LegNeato/buck,marcinkwiatkowski/buck,kageiit/buck,JoelMarcey/buck,ilya-klyuchnikov/buck,shs96c/buck,dsyang/buck,nguyentruongtho/buck,robbertvanginkel/buck,k21/buck,rmaz/buck,zhan-xiong/buck,marcinkwiatkowski/buck,LegNeato/buck,zhan-xiong/buck,darkforestzero/buck,dsyang/buck,darkforestzero/buck,daedric/buck,davido/buck,robbertvanginkel/buck,grumpyjames/buck,davido/buck,clonetwin26/buck,LegNeato/buck,ilya-klyuchnikov/buck,k21/buck,nguyentruongtho/buck,marcinkwiatkowski/buck,daedric/buck,ilya-klyuchnikov/buck,clonetwin26/buck,brettwooldridge/buck,ilya-klyuchnikov/buck,davido/buck,davido/buck,vschs007/buck,brettwooldridge/buck,clonetwin26/buck,shybovycha/buck,brettwooldridge/buck,JoelMarcey/buck,LegNeato/buck,zpao/buck,zhan-xiong/buck,shybovycha/buck,k21/buck,darkforestzero/buck,k21/buck,LegNeato/buck,k21/buck,brettwooldridge/buck,davido/buck,brettwooldridge/buck,vschs007/buck,kageiit/buck,dsyang/buck,davido/buck,davido/buck,grumpyjames/buck,brettwooldridge/buck,grumpyjames/buck,facebook/buck,grumpyjames/buck,shs96c/buck,robbertvanginkel/buck,davido/buck,rmaz/buck,shybovycha/buck,shybovycha/buck,daedric/buck,daedric/buck,vschs007/buck,facebook/buck,k21/buck,facebook/buck,darkforestzero/buck,darkforestzero/buck,nguyentruongtho/buck,SeleniumHQ/buck,dsyang/buck,zhan-xiong/buck,shs96c/buck,marcinkwiatkowski/buck,grumpyjames/buck,JoelMarcey/buck,ilya-klyuchnikov/buck,Addepar/buck,shs96c/buck,romanoid/buck,clonetwin26/buck,zhan-xiong/buck,clonetwin26/buck,marcinkwiatkowski/buck,marcinkwiatkowski/buck,Addepar/buck,vschs007/buck,romanoid/buck,kageiit/buck,marcinkwiatkowski/buck,SeleniumHQ/buck,brettwooldridge/buck,robbertvanginkel/buck,JoelMarcey/buck,darkforestzero/buck,SeleniumHQ/buck,shs96c/buck,grumpyjames/buck,shybovycha/buck,rmaz/buck,robbertvanginkel/buck,clonetwin26/buck,robbertvanginkel/buck,shybovycha/buck,vschs007/buck,nguyentruongtho/buck,nguyentruongtho/buck,k21/buck,daedric/buck,SeleniumHQ/buck,rmaz/buck,marcinkwiatkowski/buck,daedric/buck,vschs007/buck,rmaz/buck,daedric/buck,shs96c/buck,rmaz/buck,shybovycha/buck,k21/buck,Addepar/buck,davido/buck,Addepar/buck,ilya-klyuchnikov/buck,facebook/buck,robbertvanginkel/buck,romanoid/buck,JoelMarcey/buck,romanoid/buck,romanoid/buck,SeleniumHQ/buck,darkforestzero/buck,vschs007/buck,darkforestzero/buck,Addepar/buck,shybovycha/buck,dsyang/buck,nguyentruongtho/buck,ilya-klyuchnikov/buck,zhan-xiong/buck,romanoid/buck,dsyang/buck,zhan-xiong/buck