If you wait for up to 15 minutes after your account has been locked, it will be unlocked.
If you enter your password incorrectly more than a certain number of times, your account will be locked, but if you wait for up to 15 minutes, it will be unlocked.