References #2465: Changed lock so it's shared across all layouts that derive from AbstractLayoutTask.