implement reopen_logfile in lock_service (refs #876)

Patch for part 1 to fix #876