Add set_shared_value

Fix #32
Will there be a race condition here?

To make things clear, how about a get_shared_value which aliases to get_value(_, shared)?