rc.local: move semaphore hotfix to an earlier stage