Not completely clear where you are.
If in Thailand you can do a border bounce enter visa exempt and apply for non O at your local immigration office.
Yes you could then obtain 60 day extension to visit wife however not required.
You can obtain the non O immediately at local Thai immigration office if you have Thai bank account in your name only.