Fix handling of non-splittable files without blocks
Fix hive connector semaphore release bug