After you file

If your original 2017 return had a balance due expect the 2018 refund to be taken to satisfy the return even with a freeze on the account.   If they do take the money  then you will simply report it on the amended return to get a refund of any excess paid in when you file the 1040X.