Type clean . This will wipe the partition table and force all programs to drop their locks.
Some USB flash drives have a hardware lock switch. Check the physical case for a slider. Also, some SSDs have a firmware-level lock that requires a secure erase. transmac drive has been locked by another program hot