### Details:
- *I lost code `t_stream_count_map[(void*)this] = item.first;` in
#19832*
- *the thread safe issue happen in below workflow*
- create thread A
call CustomThreadLocal:local() in thread A -> create stream A (the count
of stream A is 2)
destory thread A (the count of stream A is 1)
create thread B (same thread id with thread A)
call CustomThreadLocal:local() in thread B -> use stream A(the count of
stream A is 1, so it's broken)
- *add testcase, also fix
https://github.com/openvinotoolkit/openvino/pull/19986/files#r1332774754*
### Tickets:
- Closes https://github.com/openvinotoolkit/openvino/issues/24509
---------
Signed-off-by: HU Yuan2 <yuan2.hu@intel.com>
Co-authored-by: Wanglei Shen <wanglei.shen@intel.com>