Gets hazard pointer from atomic pointer safely.
Atomic pointer.
Mask of bits.
Result of mask.
Hazard pointer containing the element.