add locking to public interface functions

This is in effort to make andorid-dl thread-safe. But it's not thread-safe
yet. For this android_dl_get_last_error() would need to be changed.
update README.md