Replaced a G_LOCK I've missed by D_LOCK