smalloc: Remove read/write lock race condition which will result in segmentation...