set read only flag on a different line

Some non-POSIX-compliant shells don't understand the basic concept of
setting a variable exactly once (I'm looking at you, ksh).