Esto se me ocurre para bloquear funciones o variables tanto en módulos como en ficheros únicos.
lock var name = "John" # in this case name is locked and only can be used in it's own scope.
lock fn change_name(new_name):
name = new_name # allowed