Lock and unlock a magazine.

Closes #7.