I replicated your case on my machine, even I can’t set the Current Read-Only state to Yes and Read-Only to no,
The command shall work above, double check it, here’s my CMD lines used
**BEFORE**
DISKPART\> attrib disk
Current Read-only State : No
Read-only : No
Boot Disk : No
Pagefile Disk : No
Hibernation File Disk : No
Crashdump Disk : No
Clustered Disk : No
DISKPART\> attrib disk set readonly
**AFTER**
DISKPART\> attrib disk
Current Read-only State : Yes
Read-only : Yes
Boot Disk : No
Pagefile Disk : No
Hibernation File Disk : No
Crashdump Disk : No
Clustered Disk : No
After I used Minitool Partition Wizard
DISKPART\> attrib disk
Current Read-only State : No
Read-only : No
Boot Disk : No
Pagefile Disk : No
Hibernation File Disk : No
Crashdump Disk : No
Clustered Disk : No
Maybe try Third-party partition softwares, or try gparted on linux