pulsedeviceprovider: Add compare_device_type_name function and missing lock
Add compare_device_type_name function to simplify compare device type name and fix the missing lock when accessing default_sink_name and default_source_name.
Add compare_device_type_name function to simplify compare device type name and fix the missing lock when accessing default_sink_name and default_source_name.