Fixed dopy int/double conversion bug that meant we weren't requesting lock renewals until too late. Hooray for tests :)