I suspect it's a lot older than that. See this entry in The Phrase Finder for a derivation that may (or may not) be more authoritative. They take it back at least as far as the mid-1800s.