The real issue is when they're old enough to reach the lock, but not old enough to trust not to destroy things or injure themselves if left unsupervised.