s4-ldb: use a parent context in the ldb utils