locale protection for IPC::Shareable