shmem_parse_options(): take handling a single option into a helper