Unlock cft_count lock before returning in case of empty list.

'list' should never be NULL, given that the function receives the address of the
list pointer, and the only call passes in &CONNECTIONLIST.

This fixes up commit e302e38e0efdb33fcd53ec7acc41686214dbc6ea
(cherry picked from commit f561f5eceb22881ab8f86119645cc08ccaa3a0ca)