add locking for arena writers
fix switch (case) in lock_reader()
fixed compiler warnings in lock_al() and unlock_al()
cleanup spacing in lock_reader()