Readd CRYPTO_{LOCK|UNLOCK|READ|WRITE}.

These defines are part of the the locking callbacks which have been
removed. However, code that still tries to provide locking callbacks
will need these values to compile.

The locking callback that such code tries to install will be ignored,
but that's harmless since BoringSSL handles locking itself now.

Change-Id: Ic84da8b52020ccd3ecc8913b4e41d366690c7649
diff --git a/include/openssl/thread.h b/include/openssl/thread.h
index a05bece..568a858 100644
--- a/include/openssl/thread.h
+++ b/include/openssl/thread.h
@@ -102,6 +102,13 @@
 
 /* Deprecated functions */
 
+/* These defines do nothing but are provided to make old code easier to
+ * compile. */
+#define CRYPTO_LOCK 1
+#define CRYPTO_UNLOCK 2
+#define CRYPTO_READ 4
+#define CRYPTO_WRITE 8
+
 /* CRYPTO_num_locks returns one. (This is non-zero that callers who allocate
  * sizeof(lock) times this value don't get zero and then fail because malloc(0)
  * returned NULL.) */