tls: removed inline specifier and renamed safe_shm_available()
- became shm_available_safe() to have the shm_ prefix which common for
shm functions
- declaring inline in c header file and implementing in c source file
makes clang throw compile warnings