I'm sorry you're surrounded by what is plainly abusive - threats to lock you up and separate you from your family?
Please contact some sort of authority about this - whether it be a teacher at school, the police, your doctor, whoever, you need support and the appropriate guidance on how to proceed.
There's ignorance and then there's abuse - if she wants to pick and choose whatever religious argument suits her prejudice then fine, but treating her own daughter like this is despicable.
Please know that one day you won't have to put up with this - there's absolutely nothing wrong with you AT ALL. If you can get away sooner i'd advise it - is there an aunt or grandparent you can live with? Make sure you can confide in someone sensible and trustworthy.
For now surround yourself with as much love and kindness as possible; depend on your friends as well as us here. Please know there are people who care for you and know your sexuality isn't something wrong and shameful