Look in the mirror each morning and practice saying "NO" out loud, or anything else you'd like to say to her. Say it loud and clear. Might seem mad but it'll get you used to the sound of your own voice being strong and assertive.
Meanwhile, as others have said, your husband needs to support you to a level you both agree upon and will help to empower you.
Your home is your castle. There is no rule book which says you have to open your door to anyone. If only more people would understand this. I don't answer my door to strangers, ever. Sometimes I call to them from a window if I don't know them, but often, just ignore the knock. You can too, MIL or not. You can always say you were in the bathroom or out the back hanging the washing! Don't give her a key!
Build your relationships with other in-law family members. Get closer to them. She'll hopefully soon get the message that she's not part of the gang. Keep her at arm's length as much as you can while u build your confidence. .... Chin up. Be strong. Big hug.
Please help! (grandchild being locked in bedroom)


