Fix race condition that can be triggered if the token expires right after we retrieve it, but before we can set the new expiry time.
Fix race condition that can be triggered if the token expires right after we retrieve it, but before we can set the new expiry time.

dplarson/gitlabhq,darkrasid/gitlabhq,allysonbarros/gitlabhq,openwide-java/gitlabhq,screenpages/gitlabhq,axilleas/gitlabhq,dplarson/gitlabhq,screenpages/gitlabhq,stoplightio/gitlabhq,htve/GitlabForChinese,icedwater/gitlabhq,t-zuehlsdorff/gitlabhq,shinexiao/gitlabhq,mmkassem/gitlabhq,iiet/iiet-git,shinexiao/gitlabhq,darkrasid/gitlabhq,allysonbarros/gitlabhq,screenpages/gitlabhq,htve/GitlabForChinese,allysonbarros/gitlabhq,t-zuehlsdorff/gitlabhq,axilleas/gitlabhq,daiyu/gitlab-zh,shinexiao/gitlabhq,dreampet/gitlab,daiyu/gitlab-zh,axilleas/gitlabhq,icedwater/gitlabhq,LUMC/gitlabhq,jirutka/gitlabhq,iiet/iiet-git,t-zuehlsdorff/gitlabhq,darkrasid/gitlabhq,allysonbarros/gitlabhq,dreampet/gitlab,openwide-java/gitlabhq,dplarson/gitlabhq,mmkassem/gitlabhq,mmkassem/gitlabhq,mmkassem/gitlabhq,htve/GitlabForChinese,openwide-java/gitlabhq,LUMC/gitlabhq,jirutka/gitlabhq,dreampet/gitlab,dplarson/gitlabhq,daiyu/gitlab-zh,icedwater/gitlabhq,icedwater/gitlabhq,stoplightio/gitlabhq,shinexiao/gitlabhq,iiet/iiet-git,LUMC/gitlabhq,darkrasid/gitlabhq,jirutka/gitlabhq,stoplightio/gitlabhq,dreampet/gitlab,htve/GitlabForChinese,iiet/iiet-git,t-zuehlsdorff/gitlabhq,LUMC/gitlabhq,stoplightio/gitlabhq,openwide-java/gitlabhq,jirutka/gitlabhq,axilleas/gitlabhq,screenpages/gitlabhq,daiyu/gitlab-zh