[PATCH 2/4] locking: use shared daemon startup code