Don't lock controller when 'use map settings' is unchecked.

This partially fixes #21978.