fix sharememory create bug on linux