correct indentification of named semaphore and named shared data

Signed-off-by: Mattias Andrée <maandree@operamail.com>