Turns out I was wrong. It doesn't clear the read only flag. Just makes you overwrite the file. The scary thought is that TFS only recognises changes if the file is writable. Hopefully it does when our SQL machine comes back up. I shouldn't have to hope though.