Merge "SharedMemory: clear file descriptor when explicitly closed."