Your best option to avoid the catch-22 situation is to just get the Non-O (retirement) before you leave your home country.
Get a bank account quickly upon arrival and deposit the required funds within your first 30 days of arrival.
Problem solved.
You apply using the Thai eVisa website.
****************************