Lock, Matthew, Secretary-at-War