I locked my sister out because I want to sleep but she doesn’t care

It all started when she came back from her walk. I heard her coming towards the bedroom door so I quickly sat up on my bed and went toward the door. She unlocked it but I had this lock I bought from Amazon to secure the door more in case of an intruder so I used it for our bedroom door since at 9, 10, and 11am she doesn’t truly care that I’m sleeping so she’ll just make noise and do whatever she wants. I opened it because I knew she had to put her stuff away and we got into an argument—her telling me to not lock the door because this wasn’t my room only. I know that but I need to sleep. She said that I slept at 2am and since it was 9am that was enough but it wasn’t even true that I slept at 2am. She woke up after 4 hours of sleep because she couldn’t go back to sleep so you know what she decided to do? She decided to fold her clean laundry clothes I cleaned and had the hallway lights while doing just that. After that, she “forgot” to turn the hallway lights off while she went into the kitchen to eat something because she was hungry. I forgot to mention to her that she folded her clothes before going to get something to eat because I was pissed and scared of her so I don’t always remember what else to say until it’s too late. So we continued to argue and I mentioned too that she told our mom that “4 hours of sleep is enough for me for now” and when I brought that up to her in the argument she said “Because I couldn’t go back to sleep and I was hungry” or something. Such BS! Telling me afterward that I keep trying to argue more and more with her because I just want to win the argument like??? What am I gonna receive if I do, nothing! That’s stupid of her to say and I feel like she’s only saying that because she wants to win the argument, that’s why. In the end, she told me again to not close the door but I didn’t listen so once she left the bedroom to go make her breakfast I closed it using the special lock and just started crying more. Now I’m afraid that if I don’t open it or if she comes back at any moment to come inside and I don’t open it then she’ll find a reason to harm me more in the future because I know she’s not right in the head but I hate that she’s trying to make the rules in this house and make everyone obey it just because she says so. I’m trying to now let her control me on that but it’s impossible because idk what to do and my mom won’t do anything because she doesn’t know what to do with her when she’s in this state.

Since you share a room is there a way to split the time somehow are you able to have the space for example 4 hours to yourself and then your sister would also have 4 hours to herself and the rest of the time would be open to both of you
I’m sorry you’re still not sleeping well