Task by key may return null, guard against it
Applied H2 changes recommended by Stuart

FS lock used, changed lock recovery code, and cleanup up
a mess I did when code got initially "borrowed"