Gustaf,
Thank you very much indeed. I had not done so. In fact I had got up this morning specifically to re-trace my steps with the libthread library because having trawled through the code it seemed the most likely source of trouble. Your feedback saved me hours!!
I installed it and the following things happened:
1) There was an error associated with the ::thread object as before and an undeclared variable 'f'
2) After re-starting the server this error disappeared
3) The server was very much slower in returning pages than before the request monitor had been installed
4) When I selected xotcl-request-monitor from the applications list on the openacs index page, the server seemed to get stuck processing the request and no longer responded to any other requests either.
5) After uninstalling xotcl-request-monitor using the package manager the site returned to its previously brisk behaviour.
I have no idea why this is - perhaps my own omissions - but I thought that I would provide the feedback anyway.
Many Thanks
Richard