[Patch resend] server: Release of related atoms when destroying a window class