Add debug statements before and after lockfile acquisition for token refresh
issue