So this is how locking is working in bash