[XrdCl] Fix some typos
Use scoped lock inside mac-specific XrdSysSemaphore implementation to avoid deadlock on thread cancellation
Use cleanup handler in mac-specific semaphore implementation to allow its condition variable to be unlocked on thread cancellation