Lots of great advice given..
How have you and him been dealing with his Bipolar illness since first getting together? Has he been stable in the past for a good deal of time? Like most people I am certain he has been dealing with Bipolar long before he got the actual diagnosis... So how has he been handling life?
The one thing I do want to throw out there .... Not every argument or mean word and action can be explained by his Bipolar... Sometimes it boils down to him just reacting in a bad way .. Everyone gets mad upset and pissed off at times, He is still responsible for his actions and any fallout that happens.
Him locking you out of the bedroom? I'm sorry that's ridiculous and childish, possible manipulative also . Could he possibly have some BPD issues also?
I hope you are able to find some peace and time for your own self care, Don't lose yourself in his illness.