When did high quality, sturdy door locks become commonplace?

I heard someone on the internet suggest that metalworking in the 1900s probably couldn’t support cheap and reliable locksmithing. Is this true? I heard that rich people probably had good door locks much earlier, as in hundreds of years earlier, so surely locks were commonplace during the 1900s to 1930s?

Not really, most town houses relied on wooden bars dropped in a slot back then.

Yes, locks were commonplace in the early 1900’s.
Most of the famous lock companies got their start in the mid-late 1800’s.

Cheap no. Reliable yes. They do go back a long time though: