block: add a new set_read_only method