A component for simple resource locking.