"got told by a slightly un-nice policeman that going-out for a coffee at 2200z was not a reasonable excuse for breaking lockdown."
He was absolutely right. Instead of going for a single ready made cup of coffee, you could have gone somewhere to actually buy the stuff to make your own fresh coffee, instant or otherwise, and that would most likely have been ok. Especially if you were buying milk and sugar too.