fixed 2 bugs in withheld implementation

1. Threadlocal was not reset each request so sometime withheld is hidden even when it shouldn't

2. but with threadlocal sometimes causes elements to be removed and then metadata saved, losing the elements

Conflicts:
	web/src/main/java/org/fao/geonet/kernel/XmlSerializer.java