[System.Core] ReaderWriterLockSlim.cs now builds with mono.

* Adds support to build without Code Access Security, by using the
  define DISABLE_CAS_USE.

* Builds without [MethodImpl(MethodImplOptions.AggressiveInlining)]
  when target framework version is lower than 4.5.

* Use Thread.Volatile instead of Volatile.Read when target framework
  version is lower than 4.5.

Required by mono/mono#1436
@esdrubal the commit message still mentions DISABLE_CAS_USE