Current sensing on solenoid
Sure. You are misusing M2. As a p-type it has a body diode with the anode at the source and cathode at the drain. So, whenever M1 is conducting, the body diode is forward biased, and current flows.

To do what you want, move M2 to the other side of the solenoid and reverse its orientation. That is, connect the source to your +12, and the drain to the solenoid.