It's an idiom in the US which may have some basis in historical fact but has long been disconnected from its origins, and it simply means "There's no possible way". (Though you can replace "possible" with your choice of expletives, "stinkin'" being one of the tamer ones.) – Hot Licks
Stinkin' just provides emphasis. It essentially means there's [absolutely] no way. – Jason Bassford