Thick as thieves
This use of thick means intimate, conspiratorially close, in the manner of plotting thieves, dates from the early 19th century.