Fixed check for ongoing prepareToPut when a new one comes. This could lead to concurrent prepareToPuts