In the end, I will try to purchase skeleton keys, as suggested by Steve Sether in the comments.
This may not be easy to open from outside in case of an emergency if the key is already inserted from inside, but the bathroom is actually already kind of accessible from outside the house through the window.