[perl #127533] only test semctl() if we have everything needed to use it