Merge "libdm: Fix race conditions in LoopControl::Attach."