Add missing doc file and rename the has_lock variabel