Thread locking category method on ALAssetsLibrary, to illustrate how to block background threads until the assets library method finishes