Derive copyright year from src/COPYRIGHT.

MFC after:	2 weeks
add support for private knote lock (reduces lock contention),
adapting OS_selrecord accordingly.
Problem and fix suggested by adrian and jmg