[asan] Do not invoke LSan hooks unless CAN_SANITIZE_LEAKS.