[bugfix] keep real memory size and bookkeeping flag

Previously, locks such as POSIX locks used shared memory and reported a
smaller size than the actual memory allocated.  Later, they would fix
that memory for `munmap`.  This lead to some unnecessary complications,
as well as a bug where attaching and detaching from such locks resulted
in increased reported memory size.

Additionally, adding the bookkeeping flags lets both the --tool-names to
correctly report the object sizes (removing the bookkeeping) as well as
--tool-dump to correctly dump only the object of interest (not printing
garbage that comes after the object taking the bookkeeping size into
account).

Signed-off-by: Shahbaz Youssefi <ShabbyX@gmail.com>