lock_ref: inform callers of unavailable ref