added lock file in auto_partition.sh