Question: disk is locked reinstall macos?
Answer: Power it down.
Hold down Option-Command-R while powering on; you can let go once you see the progress bar. ... 
When the recovery window opens, go to Disk Utility. ... 
Choose Erase. ... 
Exit disk utility, then reinstall High Sierra.