Gets the unlock retries for the given lock.
lock
a UnlockRetries.
a ModemLock.
the unlock retries or UNLOCK_RETRIES_UNKNOWN if unknown.