[lock-unlock] refactor + command will be executed with more accurate fileName