Create read_write_lock.c

Reference:
http://stackoverflow.com/a/9048613