fixed build error: variable ‘ret’ set but not used
fixed tracking mapped shm segments
make sure not to write past the k_error buffer
improved error message by including ketama_error() in it