get rid of process_lock/unlock

Signed-off-by: S.Çağlar Onur <caglar@10ur.org>