Create lock files for use in shell scripts