Question regarding threaded barrels.

Am active duty military living in NC for now. I have some off roster guns here that I want to bring back to Cali with me in the near future. I have an M&P 5.7 that comes with a factory threaded barrel. Is there anyway I can legally bring this to Cali? Im very rusty on my CA gun laws and would really rather not sell it as I'm pretty sure there aren't any non threaded barrels for it.