[PATCH v2] server: Release related atoms when destroying a window class