If you lock an iPhone, then blast it with as many attempts as possible to unlock it unsuccessfully because you're sure it's the right code, then Apple will basically brick that iPhone, leaving you with no choice but to either get a desktop PC or go to an Apple store, nuke and pave the iPhone, and pray you didn't keep anything off of the someone-else's-computer called iCloud.
Ask me how I know.