public function lock(string $sessionIdentifier): bool
    {
        if (in_array($sessionIdentifier, self::$lockedIdentifiers)) {
            return true;
        }

        self::$lockedIdentifiers[] = $sessionIdentifier;

        return true;
    }