worktree add: add --lock option
As explained in the document. This option has an advantage over the
command sequence "git worktree add && git worktree lock": there will be
no gap that somebody can accidentally "prune" the new worktree (or soon,
explicitly "worktree remove" it).
"worktree add" does keep a lock on while it's preparing the worktree.
If --lock is specified, this lock remains after the worktree is created.
Suggested-by: David Taylor <redacted>
Signed-off-by: Nguyễn Thái Ngọc Duy <redacted>
Helped-by: Jeff King <redacted>
Signed-off-by: Junio C Hamano <redacted>