Lock option in Materialized Query