Change lower atomic pass to use IntrinsicInst to simplify it a bit.