locking during getting new id in LazyLiteral