If a stock stops trading the shares remain in the account until they either start trading again or until the shares are removed by the depository (DTC in the case of US securities). That could be a short time or a very long time. It is important to remember that as long as the halted shares are in the account they will have a current margin requirement. In addition, if you have a short stock position you may be charged short stock interest if applicable. Investor bulletins from the SEC and Finra are available at the following links:
Finra bulletin When the Trading Stops—Part 1: Trading Halts
Finra bulletin When the Trading Stops—Part 2: Delays and Suspensions
Finra bulletin When Trading Stops: What You Need to Know About Halts, Suspensions and Other Interruptions