config_file: handle error when trying to lock strmap
config_file: handle error when trying to lock strmap

Accessing the current values map is handled through the
`refcounder_strmap_take` function, which first acquires a mutex
before accessing its values. While this assures everybody is
trying to access the values with the mutex only we do not check
if the locking actually succeeds.

Fix the issue by checking if acquiring the lock succeeds and
returning `NULL` if we encounter an error. Adjust callers.

leoyanggit/libgit2,saurabhsuniljain/libgit2,stewid/libgit2,Corillian/libgit2,Corillian/libgit2,joshtriplett/libgit2,joshtriplett/libgit2,joshtriplett/libgit2,saurabhsuniljain/libgit2,saurabhsuniljain/libgit2,jeffhostetler/public_libgit2,jeffhostetler/public_libgit2,Corillian/libgit2,joshtriplett/libgit2,leoyanggit/libgit2,jeffhostetler/public_libgit2,stewid/libgit2,leoyanggit/libgit2,jeffhostetler/public_libgit2,jeffhostetler/public_libgit2,Corillian/libgit2,saurabhsuniljain/libgit2,stewid/libgit2,jeffhostetler/public_libgit2,leoyanggit/libgit2,stewid/libgit2,Corillian/libgit2,saurabhsuniljain/libgit2,joshtriplett/libgit2,joshtriplett/libgit2,stewid/libgit2,saurabhsuniljain/libgit2,Corillian/libgit2,leoyanggit/libgit2,stewid/libgit2,leoyanggit/libgit2