Fixed race with grandson creation/checking

Signed-off-by: Dima Kuznetsov <dkuznets@redhat.com>