Add the ability to store data with a lock

Signed-off-by: Kareem

Closes #8