Your boss is unreasonable.
But since you can't do anything about that - enforce your boundaries. You are well within your rights to refuse to tell anyone whether you are married, and/or have children, et cetera. That's private info they have no right to, and of course you wouldn't want to discuss your children with a pedophile.
If your boss complains about you being "rude", tell him that you can either be "strong" or "nice" and both at once is not possible.
Is this strictly speaking a pedophile, or has he also raped adult women?
In threads where people talk about criminals they used to know, there was a pattern of only children feeling that something was off about pedophiles, or adults only noticing something off in how the pedophile acted with children, not with adults.
So, I wonder ...
By "locked away" do you mean there's a physical barrier between you and him?
Because if there's not, then I think you should listen to your gut and use any and all options open to you to get away from this person.