I'd guess that Lem used lieutenant rank from citizens' militia (which was back then the police force in Polish People's Republic), not knowing about rank changes in the UK - it was replaced by chief inspector as you linked. goodreads.com uses "Lt. Gregory" in book summary so it's not a translation issue.
https://en.m.wikipedia.org/wiki/Police_ranks_of_the_United_K...
There were ranks of Lieutenant and Detective Lieutenant, but only in Scotland and only until about 1950.