Thickness: make masking thickness map optional in dialog

Results will not change for clients of the old API getLocalThickness(),
and an option has been added to an overloaded version of the method so
that clients have the option to move over.