It depends on the state.
In those states that do not require licensure, anyone with any background can become a locksmith.
In licensed states, those with a record of theft or burglary may not be able to get a license.