race when creating a new shelf
Created originally on Bitbucket by sborho (Steve Borho)
If the shelve tool creates a shelf file automatically for the user, the tool has a tendency to record a timestamp with the empty file, read it empty, then write to it with the same timestamp.
Because of the refresh semantics, the shelf looks empty until the shelve tool is restarted.