We do not have a functionality as this time to prevent editing a file that is open with MS Project.