[fix] Fix a race condition in the authorization middleware
[fix] Fix a race condition in the authorization middleware

primus/primus,primus/primus,beni55/primus,colinbate/primus,dercodebearer/primus,colinbate/primus,beni55/primus,beni55/primus,modulexcite/primus,basarat/primus,clanwqq/primus,basarat/primus,dercodebearer/primus,clanwqq/primus,dercodebearer/primus,modulexcite/primus,basarat/primus,clanwqq/primus,primus/primus,STRML/primus,STRML/primus,modulexcite/primus,STRML/primus,colinbate/primus