Target: Added Locking and target counting for non-iSCSI targets