Replaced codes that check the number of read lock with check the boolean flag.

Because if current thread has no read lock and call getReadLockCount() will throw an exception
Changed log level of request/response header object