Question: disk is locked macos install?
Answer: Restart the computer. ... 
The Utility Menu will appear in from 5-20 minutes. ... 
Select Disk Utility and click on the Continue button.
When Disk Utility loads select the drive (usually, the out-dented entry) from the side list.
Click on the Erase tab in Disk Utility's main window.