Set lock timeout as soon as possible

It is better that it is done before we create any Groonga objects.