add customisable variable to control source buffer locking

-allow users to control whether the source buffers associated with
the debugger process(es) are locked (read-only mode enabled) when
debugging is in progress