key_commit: Added diagnostics for orphaned gldetail records