added Test-FileLock

Adding new function to check if the file is locked before trying to zip