Fix an issue where Ajax requests to unlock weren't completing before the unload finished, despite the fact that async was false.