It means "to fart" but in a way that is not obvious until the smell hits. The smell is truly criminal, hence the possibility in the eyes of the beholder that its origins may have included a victorian detention centre.
Goldfinger turned on the laser. "Do you expect me to talk?" demanded Bond. "No Mr.Bond" laughed Goldfinger, "I expect you to... fuck me, have you let Tommy out of Prison?"