Fix read lock by clearing timeout correctly.
Separate internal constants from external configuration constants.