I also think this is ocd at its very best or worst !!!
If it's not , then sure , you need to be locked up and you know it too !
through work in the past, I have being privvy to a weekly session of "extreme" ocd sufferers meetings .... And met a beautiful young woman who had just had her first child and also felt that she would carry out a sexual act ( its hard to write this stuff , its so taboo and so out of my normal range of thinking) she expressed all the same disgust and worry as you , and it WAS ocd.
As is the religious mutterings you aslo said about heaven ect. Get that out of your head , god is not there to be used as yet another level of torment its just the ocd making sure your as f***ked up as you can be.
You need therapy not prison. And can I also add that you need to act with caution when deciding to unveil your ocd thoughts , cos unfortunatly for you , you have got one of the most controversial and hated ocd's I know of.
You are plagued with ocd but there is a way out , you just have to accept you have a tough road to go down , but you need to get help, not take yourself out of society for it to get worse and worse.