Two important bug fixes for race conditions in S-Net reference counting.