Winvolumelock 【Verified Source】

diskpart select volume X remove letter=X To relock after use: