1. ca: add mechanism to lock CA database. 2. datasource: print more process information