Use locking to prevent doc update conflicts on kookoo requests

for my own curiosity, is it necessary to move the return out of the `CriticalSection` in order for things to work correctly?