There is a synchronization issue in OH Core OAuth
#4686 (comment)
My initial suspicion was that the HTTP token refresh call was blocking and the HTTP client does not have a timeout on it.
However users have shown that the HTTP token refresh call does succeed, so the blocking is apparently within OH Core code.
So we need to fix both of these issues. I will open a PR soon.