I'm not sure all that work is worth it.
Also:
Mixing the readonly setting into the isolation levels isn't great.
Reopening the db when configuring may be surprising.
No documentation.
Whole files, no patches.