Remove shared memory keys only if no segments are attached.
merge r310845 from the Ports Tree
update to 24.0.1312.56 (security)
Merge branch 'beta'