mds_stores prevents unmounting of external disk drive
Since upgrading to OS X El Capitan, attempting to unmount an external disk drive fails sometimes if the drive is being used by mds or related processes. For example:
% sudo diskutil umount /Volumes/Kolyvagin/
Volume Kolyvagin on disk3s2 failed to unmount: dissented by PID=185 (/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/Metada ta.framework/Versions/A/Support/mds_stores)
Using the Disk Utility application also fails to unmount the drive. What is the proper procedure for unmounting the drive gracefully in these circumstances?