Implement acquire_iff_live.

Acquires a reference count, only if the reference count is non-zero.