[PATCH v2 3/4] server: Implement support for DUPLICATE_SAME_ATTRIBUTES in DuplicateHandle().