Move lockStream() and unlockStream() into file.h (from log.c). (dm)