I don't know what the policy is with regards to deprecated calls, so I decided to send this through review rather than committing directly:
There are a number of deprecation warnings when building on macOS. This patch fixes those warnings by replacing deprecated APIs with their modern equivalents. In theory, this will leave Blender's functionality unchanged. In practice, you never know, so I'd like to have a second set of eyes on it before I commit.
The main benefit would be for developers, since it should keep things working better with future versions of the macOS SDK and the reduced number of warnings will improve the signal/noise ratio of compiler output.
macOS: Replaced deprecated OSSpinlock with os_unfair_lock.
macOS: Replaced deprecated AppKit constants with modern equivalents.