Previously we were running in to a race condition where OIDC wouldn't start early enough, so kavita would load without it. As we have turned off passwords entirely, this would cause the instance to be unusable
I've copied this wait code directly from our oauth2-proxy stuff, which has the same problem. We should consider if there's a better way to do this...