fix shm-insert-string to do plain insert if shm mode is disabled